; Copy the extraction utility over and remember where it is
(copyfiles
(source "FinalCalc Disk 1:lhex")
(dest FinalCalc_dest)
)
(set lhex (tackon FinalCalc_dest "lhex"))
(complete 15)
; Ask user to select which version of program to install
(set install_versions
(askoptions
(prompt "What version of FinalCalc would you like to install?\n(The correct version for your system is already selected. For more information, click on the Help button.)")
(choices
" FinalCalc Normal Version (927k)"
" FinalCalc FPU Version (875k)"
)
(help "The FinalCalc Normal Version runs on all Amiga systems.\n\n"
"The FPU Version runs only on Amiga systems with a 68020, "
"68030, 68040 or 68060 processor and a floating point processor unit (FPU). "
"It is faster and smaller than the Normal version."
)
(default defaultversion)
)
)
(set install_options
(askoptions
(prompt "The install script will copy the following objects to your hard disk:")
(choices
" Program Libraries (233k)"
" Program Icons ( 7k)"
" Online Help Guide (447k)"
" Default Configuration ( 4k)"
" Default Outline Fonts (191k)"
" Demo Projects (120k)"
" Demo Scripts ( 7k)"
" Emergency Recoverer ( 16k)"
)
(help "FinalCalc does not need these objects to operate, but not installing them "
"(except for the demo projects and scripts) will affect its functionality.\n\n"
"It is highly recommended that you install them all unless you have very limited "
"hard disk space.\n\n"
"The Emergency Recoverer is a program that can recover your projects "
"from system memory after a crash."
)
(default 255)
)
)
; Ask user to select outline fonts to install
(set install_fonts
(askoptions
(prompt "Please select the outline fonts to install")
(choices
" Basic Outline Font Set ( 855k)"
" Extended Oultine Fonts Set (1,840k)"
)
(help "The basic outline font set contains outline fonts that FinalCalc"
" will normally require during printing. You may, however, opt"
" not to install them to save space on your hard disk.\n\n"
"The extended set contains a lot more outline fonts that you"
" may wish to install if you have a lot of extra hard disk space."
)
(default 3)
)
)
; Make installer cd into FinalCalc_dest when it executes the run statement
(set @execute-dir FinalCalc_dest)
; If the user selected the Normal version, copy it over
(set error 0)
(if (IN install_versions 0)
( (working "Installing FinalCalc program from Disk 1.")
(set error
(run
("\"%s\" -f x \"FinalCalc Disk 1:FC.lha\" >NIL:" lhex)
)
)
(if error
(abort ("Error installing FinalCalc:\n\n Cannot find or read FC.lha file\n from Disk 1."))